import { defineComponent } from 'vue'
import '../../../assets/iconFont/iconfont.css'
// eslint-disable-next-line import/namespace
import { IconProps } from '../../../types'
import './icon.scss'

export default defineComponent({
  name: 'EIcon',
  props: IconProps,
  render() {
    const { type, size } = this

    return (
      <span class={`e-icon ${type} ${'e-icon-' + size}`}/>
    )
  }
})
